<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>高考580网登录</title>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery/jquery-3.0.0.min.js"></script>
</head>
 <body>
  <div align="center">
  	<h1>填写登录信息</h1><hr>
  	<font color="red">${msg }</font>
  	<form:form action="${pageContext.request.contextPath}/loginByEmail.do" method="POST" modelAttribute="loginForm">
  		<table>
			<tr>
				<td>注册邮箱：</td>
				<td> <form:input path="email"/></td>
				<td><form:errors path="email"></form:errors></td>
				<td><font color="red">${requestScope.emailMsg }</font></td>
			</tr>
			<tr>
				<td>密码：</td>
				<td> <form:password path="password"/></td>
				<td><form:errors path="password"></form:errors></td>
			</tr>
  			<tr>
  				<td><input type="checkbox" name="autologin" value="true" />30天内自动登陆</td>
  			</tr>
  			<tr>
  				<td><font color="red">${errorMsg }</font></td>
  			</tr>
  			<tr>
  				<td colspan="2"><input type="submit" value="登录" onclick=""/></td>
  				<td><a href="${pageContext.request.contextPath }/views/user/forgotPassword.jsp">找回密码</a></td>
  			</tr>
  		</table>
  	</form:form>
  </div>
  </body>
</html>